package com.sky.mapper;

import com.sky.entity.SetmealDish;
import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: WangHongKun
 * @Date: 2022/9/22 16:58
 * @Email: 2028911483@qq.com
 * @Phone: 18683977706
 */

@Mapper
public interface SetmealDishMapper {
    void addBatch(List<SetmealDish> setmealDishes);

    List<SetmealDish> getByIds(List<Long> ids);

    SetmealDish  getBYId(Long id);

    List<SetmealDish>  getBySetmealId(Long id);



    void DeleteAll(List<Long> ids);
    @Delete("delete  from  setmeal_dish where  setmeal_id =#{id}")
    void DeleteBySetmealId(Long id);


    List<DishItemVO> getDishsBySetmealId(Long SetmealId);
}
